﻿using Microsoft.AspNetCore.Http.HttpResults;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.DomainModels.WorkforceManage;
using VOL.SmartMecial.Infrastructure;
using VOL.SmartMecial.IServices.WorkforceManage;

namespace VOL.SmartMecial.Services.WorkforceManage
{
    public class AddReplaceWorkService : IAddReplaceWorkService
    {
        private readonly IBaseRepository<ReplaceWorkModel> ReplaceWorkRep;

        public AddReplaceWorkService(IBaseRepository<ReplaceWorkModel> ReplaceWorkRep)
        {
            this.ReplaceWorkRep = ReplaceWorkRep;
        }

        public async Task<int> AddReplaceWork(ReplaceWorkModel model)
        {
            var add = await ReplaceWorkRep.AddAsync(model);
            return add;
        }
    }
}
